
#ifndef __uart1_h_
#define __uart1_h_

#include "driverh.h"

#ifdef   __cplusplus
extern   "C"   {
#endif

INT8U Uart1Init(INT32U bps, INT16U party);
void Uart1SetBaud(INT32U bps, INT16U party);
INT8U Uart1ReceiveNByte(INT8U *p, INT16U n);
INT8U Uart1SendNByte(INT8U *p, INT16U n);
INT8U Uart1SendStr(INT8 *str);
INT8U WaitUart1SendEnd(void);
void Uart1QueueFlushSendBuf(void);
void Uart1QueueFlushReceiveBuf(void);
void Uart1Empty(void);

#ifdef   __cplusplus
}
#endif

#endif /* __UART_H */
